package com.hualan.mapper.wsj;

import com.hualan.pojo.wsj.Article;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ArticleMapper {
    @Select(value = "select * from article where del = 0")
    List<Article> listAll();

    //模糊查询通过文章标题
    @Select(value = "select * from article where title like concat('%',#{title},'%') and del = 0")
    List<Article> findLike(String title);
}
